<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="./iconfont/iconfont.css" />
    <style>
      * {
        margin: 0;
        padding: 0;
        list-style: none;
        box-sizing: border-box;
      }
      a {
        text-decoration: none;
        color: #999;
      }
      body {
        font: 12px/1.5 Microsoft YaHei, Heiti SC, tahoma, arial, Hiragino Sans GB, '\5B8B\4F53', sans-serif;
        color: #666;
      }
      .shortcart {
        border-bottom: 1px solid #ddd;
        background-color: #e3e4e5;
      }
      .navgation {
        width: 1190px;
        height: 30px;
        margin: 0 auto;
        line-height: 30px;
        position: relative;
      }
      .location {
        width: 58px;
        height: 30px;
      }
      .location:hover .city {
        display: block;
      }
      .location li {
        width: 100%;
        height: 100%;
      }

      .location li a i {
        color: red;
      }
      .location .city {
        width: 400px;
        height: 550px;
        background-color: aliceblue;
        border: 1px solid #999;
        display: none;
      }
      .cart {
        position: absolute;
        right: 0;
        bottom: 0;
      }
      .cart li {
        float: left;
      }
      .cart li a {
        padding: 0 7px;
        border-right: 1px solid #999;
      }
      .center {
        width: 354px;
        height: 196px;
        background-color: aliceblue;
        border: 1px solid #999;
        position: absolute;
        top: 34px;
        left: 216px;
        display: none;
      }
      .cart li:nth-child(3) {
        color: red;
      }
    </style>
  </head>
  <body>
    <div class="shortcart">
      <div class="navgation">
        <ul class="location">
          <li>
            <a href="#"> <i class="iconfont icon-map"></i> 北京 </a>
          </li>
          <ul class="city"></ul>
        </ul>

        <ul class="cart">
          <li>
            <a href="#" style="border: 1px solid transparent">你好，请登录 </a>
            <a href="#" style="color: red">免费注册</a>
          </li>
          <li><a href="#">我的订单</a></li>
          <li>
            <a href="#">我的京东 <i class="iconfont icon-jiantouxia" style="font-size: 6px"></i> </a>
          </li>
          <ul class="center"></ul>
          <li><a href="#">京东会员</a></li>
          <li>
            <a href="#" style="color: red">企业采购 <i class="iconfont icon-jiantouxia" style="font-size: 6px"></i></a>
          </li>
          <li>
            <a href="#">客户服务<i class="iconfont icon-jiantouxia" style="font-size: 6px"></i></a>
          </li>
          <li>
            <a href="#">网站导航<i class="iconfont icon-jiantouxia" style="font-size: 6px"></i></a>
          </li>
          <li><a href="#">手机京东</a></li>
          <li><a href="#" style="border: 1px solid transparent">网站无障碍</a></li>
        </ul>
      </div>
    </div>
  </body>
</html>
